package com.andooco.dataq.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 系统页面视图
 * @author andooco
 * 20201123
 */
@Controller
public class SysPageController {

    @RequestMapping("/base/{module}/{url}.html")
    public String page(@PathVariable("module") String module, @PathVariable("url") String url,@RequestParam Map<String, Object> params,Model model) {
        //传值
        model.addAllAttributes(params);
        return "/" + module + "/" + url;
    }

}
